package com.ibk.system.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.ibk.system.MenuViewActivity;
import com.ibk.system.R;

public class LoginResultActivity extends Activity {
	public TextView tv;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login_result);
		tv = (TextView) findViewById(R.id.loginResult);
		
		String loginResult = getIntent().getStringExtra("result"); 
		tv.setText(loginResult);
		if (loginResult.equals("success")) {
			Intent it = new Intent(getApplicationContext(), MenuViewActivity.class);
			startActivity(it);
		}
	}
}
